#ifndef DFS_ERRORS_H
#define DFS_ERRORS_H

#include <algorithm>
#include <cstdint>
#include <map>
#include <string>

namespace HarmonyOS {
namespace DistributedFs {
const int MODULE_DFS = 1;
constexpr uint32_t BASE_DFS_ERR_OFFSET = 0;

/* unix standard errors */
const uint32_t SUCCESS = 0;
const uint32_t ERR_PERM = BASE_DFS_ERR_OFFSET + 1;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 2;
const uint32_t ERR_SRCH = BASE_DFS_ERR_OFFSET + 3;
const uint32_t ERR_INTR = BASE_DFS_ERR_OFFSET + 4;
const uint32_t ERR_IO = BASE_DFS_ERR_OFFSET + 5;
const uint32_t ERR_NXIO = BASE_DFS_ERR_OFFSET + 6;
const uint32_t ERR_2_BIG = BASE_DFS_ERR_OFFSET + 7;
const uint32_t ERR_NOEXEC = BASE_DFS_ERR_OFFSET + 8;
const uint32_t ERR_BADF = BASE_DFS_ERR_OFFSET + 9;
const uint32_t ERR_CHILD = BASE_DFS_ERR_OFFSET + 10;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 11;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 12;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 13;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 14;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 15;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 16;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 17;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 18;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 19;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 20;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 21;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 22;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 23;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 24;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 25;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 26;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 27;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 28;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 29;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 30;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 31;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 32;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 33;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 34;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 35;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 36;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 37;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 38;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 39;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 40;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 60;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 75;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 89;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 122;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 125;
const uint32_t ERR_NOENT = BASE_DFS_ERR_OFFSET + 524;

}
}

#endif
